/**
 * 环境配置封装
 */
const mode = import.meta.env;
// console.log("env", mode);
const env = import.meta.env.MODE || "prod";
// console.log("mdoe", env);
const EnvConfig = {
  dev: {
    baseApi: "/api",
    mockApi:
      "https://www.fastmock.site/mock/c1c302e8baed9894c48c17e4738c092e/api"
  },
  test: {
    baseApi: "//test.futurefe.com/api",
    mockApi:
      "https://www.fastmock.site/mock/c1c302e8baed9894c48c17e4738c092e/api"
  },
  prod: {
    baseApi: "//futurefe.com/api",
    mockApi:
      "https://www.fastmock.site/mock/c1c302e8baed9894c48c17e4738c092e/api"
  },
  development: {
    baseURL: "/api" // 开发
  },
  production: {
    baseURL: "/api" // 生产
  }
};
export default {
  env,
  mock: false,
  namespace: "manager",
  ...EnvConfig[env]
};
